package pyx.crazycards.game.cards;

import java.io.Serializable;

import pyx.crazycards.game.managers.ValueProperties;

/**
 * Represents a Card used in a move or owned by players.
 * 
 * @see CardType
 * @see ValueProperties
 * @author Abraao Isvi
 */
public class Card implements Serializable {
	
	private static final long serialVersionUID = 9132353467187873212L;
	
	private Long subId;
	
	private Long code;
	
	private String description;
	
	private String name;
	
	private CardType type;
	
	private ActionType actionType;
	
	private ValueProperties cost;
	
	private ValueProperties value;
	
	private ValueProperties attack;
	
	private ValueProperties defense;
	
	private Long life;
	
	private Boolean locked;
	
	private Boolean flipped;
	
	public Long getCode() {
		return code;
	}
	
	public void setCode(Long code) {
		this.code = code;
	}
	
	public String getDescription() {
		return description;
	}
	
	public void setDescription(String description) {
		this.description = description;
	}
	
	public CardType getType() {
		return type;
	}
	
	public void setType(CardType type) {
		this.type = type;
	}
	
	public ValueProperties getCost() {
		return cost;
	}
	
	public void setCost(ValueProperties cost) {
		this.cost = cost;
	}
	
	public ValueProperties getValue() {
		return value;
	}
	
	public void setValue(ValueProperties value) {
		this.value = value;
	}
	
	public Boolean getLocked() {
		return locked;
	}
	
	public void setLocked(Boolean locked) {
		this.locked = locked;
	}
	
	public Boolean getFlipped() {
		return flipped;
	}
	
	public void setFlipped(Boolean flipped) {
		this.flipped = flipped;
	}
	
	public ValueProperties getAttack() {
		return attack;
	}
	
	public void setAttack(ValueProperties attack) {
		this.attack = attack;
	}
	
	public ValueProperties getDefense() {
		return defense;
	}
	
	public void setDefense(ValueProperties defense) {
		this.defense = defense;
	}
	
	public Long getLife() {
		return life;
	}
	
	public void setLife(Long life) {
		this.life = life;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public ActionType getActionType() {
		return actionType;
	}
	
	public void setActionType(ActionType actionType) {
		this.actionType = actionType;
	}
	
	public Long getSubId() {
		return subId;
	}
	
	public void setSubId(Long subId) {
		this.subId = subId;
	}
	
	@Override
	public String toString() {
		return "code:" + code + " description:" + description;
	}
}
